<template>
    <!-- 封装的轮播图组件 -->
    <mt-swipe :auto="4000">
        <!-- 谁用组件谁给我们传递轮播图list的数组 父组件子组件lisi -->
                <mt-swipe-item v-for="item in lunbotulist" :key="item.id">
                    <img :src="item.img" alt="" :class="{'full':isFull}">
                </mt-swipe-item>
    </mt-swipe>
</template>
<script>
export default {
    // 接收接收父组件（谁用轮播组件谁传数组）轮播图list数组
    props: ["lunbotulist","isFull"]
}
</script>
<style lang="scss" scoped>
     .mint-swipe {
     height: 200px;
     text-align: center;
     img {
         height: 100%;
     }
 }
   .full {
       width: 100%;
   }
</style>
